package com.codeduck.kafka.demo.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2022-01-08
 */
public class MessageDemo01 implements Serializable{

    public static final String TOPIC = "MSG_DEMO_01";
    private static final long serialVersionUID = 8587435832675472938L;

    private String id;
    private String message;

    public MessageDemo01(String id, String message) {
        this.id = id;
        this.message = message;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "MessageDemo01{" +
                "id='" + id + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
